import React from 'react'
import {Router, Route, browserHistory, IndexRoute} from 'react-router'

// //组件
import Uwb from './Pages/Components/Uwb/uwb_content.jsx';
import Index from './Pages/Components/Index/index_content.jsx';
import NotFound from './Pages/Components/NotFound/Not_found.jsx';

//App为入口
import App from './Pages/App.jsx';

const history = browserHistory;
const Routers = () => (
    <Router history={history}>
        <Route path="/" component={App}>
            <IndexRoute component={Index}/>
            <Route path="Uwb" component={Uwb}/>
            <Route path="*" component={NotFound}/>
        </Route>
    </Router>
);

export default Routers;